<!DOCTYPE html>

<html>

<head>

    <title>{$site_name}-会员中心-消费历史</title>

    <meta name="keywords" content="{$site_seo_keywords}" />

    <meta name="description" content="{$site_seo_description}">
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
    </script>
    <style>
        #my-table th{
            white-space: nowrap;
        }
        #my-table td{
            white-space: nowrap;
        }
    </style>

    <tc_include file="Public:head" />
</head>



<body class="body-white" id="top">

<tc_include file="Public:nav" />



<div class="container tc-main">

    <div class="row">

        <div class="span2">

            <tc_include file="Public:usernav"/>

        </div>

        <div class="span10">


            <div class="tab-content">

                <div class="tab-pane active" id="one">

                    <!--<form id="addform" action="{:leuu('User/Info/hisimport')}" method="post" enctype="multipart/form-data">-->
                        <!--<p>请选择要导入的CSV文件：-->
                            <!--<input type="file" class="btn" name="file" style="height: 18px;line-height: 18px;padding:4px 12px 12px 12px">-->
                            <!--<input type="submit" class="btn" value="导入CSV">-->
                    <!--</form>-->

                    <form class="form-inline" method="get">

                        <input type="text" name="cardnum" placeholder="输入卡号" value="{$condition.cardnum}">

                        <input type="text" name="name" placeholder="输入姓名" value="{$condition.name}">

                        <button class="btn">搜索</button>

                    </form>
                    
                    <if condition="207 eq $usid || 210 eq $usid">
                        <form style="display:inline" action="{:leuu('User/Info/exportstorehis')}" enctype="multipart/form-data">
                            <input type="hidden" name="cardnum_e" id="cardnum_e" value="{$condition.cardnum}">
                            <input type="hidden" name="name_e" id="name_e" value="{$condition.name}">
                            <div style="margin-bottom: 20px; margin-top: 20px">
                                <input type="text" name="begintime" placeholder="起始日期" class="js-date" > 至 <input type="text" name="endtime" placeholder="结束日期" class="js-date" >
                                <input type="submit" class="btn" value="导出查询数据" style="width: 120px">
                            </div>
                        </form>
                    </if>


                    <div style="width: 946px;overflow-x: scroll">
                        <table class="table table-bordered table-striped table-hover" id="my-table">

                            <thead>

                            <tr>

                                <th>id</th>
                                <th>操作类型</th>
                                <th>执行方式</th>
                                <th>会员卡号</th>
                                <th>会员姓名</th>
                                <th>储值金额</th>
                                <th>赠送金额</th>
                                <th>当前余额</th>
                                <th>操作时间</th>
                                <th>操作员</th>
                                <th>备注</th>
                            </tr>

                            </thead>

                            <tbody>

                            <foreach name="hislist" item="vo">

                                <tr>

                                    <td>{$vo.id}</td>

                                    <td>

                                        <if condition="$vo['storetype'] eq 1">
                                            增加
                                            <else/>
                                            扣除
                                        </if>

                                    </td>
                                    <td>{$vo.paytype}</td>
                                    <td>{$vo.cardnum}</td>
                                    <td>{$vo.name}</td>
                                    <td>{$vo['storemoney']/100}</td>
                                    <td>{$vo['storesendmoney']/100}</td>
                                    <td>{$vo['nowstore']/100}</td>
                                    <td>{$vo.createtime}</td>
                                    <td>{$vo.createbyuser}</td>
                                    <td>{$vo.remark}</td>
                                </tr>

                            </foreach>

                            </tbody>

                        </table>
                    </div>

                </div>
                <div class="pagination">{$page}</div>
            </div>

        </div>

    </div>

    <tc_include file="Public:footer" />

</div>
<script>
    $(function () {
        var cardnum="{$cardnum}";
        console.log(cardnum);
    })
</script>
<!-- /container -->

<tc_include file="Public:scripts" />

</body>

</html>